<?
$element_id = $this->uri->segment(6,0);
$b = new element_beskrivelse();
$b->find_element_beskrivelse($this->uri->segment(4,0));
$beskrivelse = $b->element_beskrivelse;
$classes = $this->struktur_model->find_classes($element_id);
$features = $this->beskrivelse->features($classes);
?>
<form action="<? echo base_url().'indhold/rediger_feature'; ?>" method="post">
<input type="hidden" name="id_beskrivelse" value="<? echo $beskrivelse['id']; ?>">
<input type="hidden" name="redirect" value="admin/beskrivelser/vis/<? echo $beskrivelse['id']; ?>">
<?
foreach($features as $r)
{
	?><input type="radio" name="feature" value="<? echo $r['feature']; ?>" <? if($beskrivelse['feature']== $r['feature']){ echo 'checked="checked"';} ?>><? echo $r['feature_navn']."<br>";
}


?>
<input type="submit" value="vælg">
</form>

